﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Common.Test
{
    class Program
    {
        public static event EventHandler<EventArgs> OnTest;

        static void Main(string[] args)
        {
            Console.WriteLine(typeof(IDisposable).IsAssignableFrom(typeof(A)));
            Console.ReadKey();
        }

        private static void Program_OnTest2(object sender, EventArgs e)
        {
            Console.WriteLine("entry test2");
            Thread.Sleep(2000);
        }

        private static void Program_OnTest1(object sender, EventArgs e)
        {
            Console.WriteLine("entry test1");
            Thread.Sleep(5000);
        }
    }

    public class A : IDisposable
    {
        public void Dispose()
        {
            
        }
    }
}
